CC:=gcc
CFLAGS:= -g -O0 -Wall 


log:=thirdparty/log.c thirdparty/log.h

# test_log:test/test_log.c $(log)
# 	-$(CC) $(CFLAGS) -o $@ $^ -Ithirdparty
# 	# -./$@
# 	# rm -f $@mak

# json:=thirdparty/cJSON.c thirdparty/cJSON.h

# test_json:test/test_cjson.c $(json)
# 	-$(CC) $(CFLAGS) -o $@ $^ -Ithirdparty
# 	-./$@
# 	rm -f $@

common:=app/app_common.c app/app_common.h

test_common:test/test_common.c $(common) $(log)
	-$(CC) $(CFLAGS) -o $@ $^ -Iapp -Ithirdparty
	-./$@
	rm -f $@